package com.honweek;

import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;

public class CanShu {
    public static void main(String[] args) {
       methodTwo(9, 38, 87, 46);

    }


    public static void methodTwo(int... nums) {
        int result = 0;//算总和
        for (int i = 0; i <= nums.length; i++) {
            result += nums[i];
        }
        System.out.println(result);
    }
}





